Parentheses are only needed if there are zero or multiple arguments.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/731
getMatchingActions(terms) {
// terms is a list of strings
- terms = terms.map((term) => term.toLowerCase());
+ terms = terms.map(term => term.toLowerCase());
let results = [];
this.addItem(icon, icon.label);
this.icons.push(icon);
- icon._unmanagedSignalId = icon.window.connect('unmanaged', (window) => {
+ icon._unmanagedSignalId = icon.window.connect('unmanaged', window => {
this._removeWindow(window);
});
}
this._clearButton.set_x_align(Clutter.ActorAlign.END);
this._clearButton.connect('clicked', () => {
let sections = [...this._sections.keys()];
- sections.forEach((s) => s.clear());
+ sections.forEach(s => s.clear());
});
box.add_actor(this._clearButton);
}
_connectItemSignals(menuItem) {
- menuItem._activeChangeId = menuItem.connect('notify::active', (menuItem) => {
+ menuItem._activeChangeId = menuItem.connect('notify::active', menuItem => {
let active = menuItem.active;
if (active && this._activeMenuItem != menuItem) {
if (this._activeMenuItem)
this._history = new History.HistoryManager({ gsettingsKey: HISTORY_KEY,
entry: this._entryText });
- this._entryText.connect('activate', (o) => {
+ this._entryText.connect('activate', o => {
this.popModal();
this._run(o.get_text(),
Clutter.get_current_event().get_state() & Clutter.ModifierType.CONTROL_MASK);
this._isWorkspacePrepended = false;
this._switchData = null;
- this._shellwm.connect('kill-switch-workspace', (shellwm) => {
+ this._shellwm.connect('kill-switch-workspace', shellwm => {
if (this._switchData) {
if (this._switchData.inProgress)
this._switchWorkspaceDone(shellwm);
}
let waitId = 0;
- let id = global.display.connect('grab-op-end', (display) => {
+ let id = global.display.connect('grab-op-end', display => {
display.disconnect(id);
GLib.source_remove(waitId);